package io.yuanqi.hgtcshop.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import io.yuanqi.hgtcshop.entity.dos.Goods;
import io.yuanqi.hgtcshop.entity.param.GoodsSearchParams;
import io.yuanqi.hgtcshop.entity.vo.GoodReturnVO;
import io.yuanqi.hgtcshop.entity.vo.GoodsVO;

import java.util.List;

/**
 * 商品业务层
 *
 * @author pikachu
 * @since 2020-02-23 16:18:56
 */
public interface GoodsService extends IService<Goods> {




    /**
     * 商品查询
     *
     * @param goodsSearchParams 查询参数
     * @return 商品分页
     */
    GoodReturnVO queryByParams(GoodsSearchParams goodsSearchParams);

    /**
     * 查询商品VO
     *
     * @param goodsId 商品id
     * @return 商品VO
     */
    GoodsVO getGoodsVO(String goodsId);

}
